<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- <link rel="icon" href="./imgs/bitcoin-blank.png" type="image/png" sizes="16x16"> -->

        <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="./public/js/html5shiv.min.js"></script>
    <script src="./public/js/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" href="__PUBLIC__/my.css"> 
    <title>用户登录</title>
    </head>
    <body>
     <body class="adminlogin">

<div class="conatiner mt50">
    <div class="clearfix mt50"></div>
    <h1 class="text-center mt50">用  户 注 册</h1>
    <hr>

    <form onsubmit="return false;" class="form-horizontal col-md-4 col-md-offset-4">

        <div class="form-group">
            <div class="col-md-12">






<div class="form-group">
    <label for="inputEmail3" class="col-sm-3 control-label">用户名</label>
    <div class="col-sm-9">
      <input type="text" class="form-control" name="username" placeholder="用户名">
    </div>
  </div>


<div class="form-group">
    <label for="inputEmail3" class="col-sm-3 control-label">昵称</label>
    <div class="col-sm-9">
      <input type="text" class="form-control" name="nickname" placeholder="昵称">
    </div>
  </div>


<div class="form-group">
    <label for="inputEmail3" class="col-sm-3 control-label">密码</label>
    <div class="col-sm-9">
      <input type="password" name="passwd" class="form-control" id="password" placeholder="请输入密码">
    </div>
  </div>





<div class="form-group">
    <label for="inputEmail3" class="col-sm-3 control-label">确认密码</label>
    <div class="col-sm-9">
      <input type="password" name="repasswd" class="form-control" id="repassword" placeholder="请再次输入密码">
    </div>
  </div>



        <!-- <div class="form-group">
            <div class="col-md-12">
                <input type="password" name="pwd" class="form-control input-lg" placeholder="请输入密码">
            </div>
        </div> -->

<!-- <div class="form-group">
            <div class="col-md-12">
                <input type="password" name="pwd" class="form-control input-lg" placeholder="请再次输入密码">
            </div>
        </div> -->

        <div class="form-group">
            <div class="col-md-12">
                <div class="pull-left">
                    <input type="text" name="vcode" class="form-control" placeholder="验证码">
                </div>
                <div class="pull-right">
                <img src="<{:U('Dologin/yzm')}>" title="点 我 刷 新" style="cursor:pointer" onclick="this.src=this.src+'?i='+Math.random()" class="pull-right verify">
                </div>
            </div>
        </div>
        
        <div class="form-group">
            <div class="col-md-12">
              <button  class="btn btn-primary btn-lg btn-block reg">注册</button>
              <a href="" class="pull-right">返回首页</a>
            </div>
        </div>

    </form>
</div><!-- END container -->


<!-- 此处引入jQuery -->
<script src="__PUBLIC__/js/jquery.min.js"></script>
<!-- bootstrap.min.js必须放在JQ后面 -->
<script src="__PUBLIC__/js/bootstrap.min.js"></script> 
<script>
    $('.reg').click(function(){
        $.ajax({
           type: "POST",
           url: "<{:U('Dologin/verifyUser')}>",
           data: $('form').serialize(),
           success: function(msg){
            if(msg['status'])
            {
              
            }
             console.log(msg['message'].username);
           }
        });
    });
</script>
    </body>
</html>